//
// Created by 吴喆 on 2020/3/17.
//

#ifndef SUMMER_ATKSTATEMACHINE_H
#define SUMMER_ATKSTATEMACHINE_H

#import "../engine/Playable.h"

class AtkState : public PlayableState {
public:
    PlayableState *handleInput(Playable &playable, KeyEvent *event) override;

    PlayableState *update(Playable &playable) override;

    void enter(Playable &playable) override;

private:
    float lastTime = 0;

};

class NotAtkState : public PlayableState {
public:
    PlayableState *handleInput(Playable &playable, KeyEvent *event) override;

    PlayableState *update(Playable &playable) override;

    void enter(Playable &playable) override;
};

class AtkStateMachine : public StateMachine {
public:
    AtkStateMachine();
private:
};


#endif //SUMMER_ATKSTATEMACHINE_H
